import type { ThemeConfig } from 'ant-design-vue/es/config-provider/context'
import { theme } from 'ant-design-vue'

// 星云蓝 - Saury 号主色
const COLOR_PRIMARY = '#3B82F6'

// 浅色模式 AntD 配置
export const lightTheme: ThemeConfig = {
  token: {
    colorPrimary: COLOR_PRIMARY,
    borderRadius: 6,
    fontFamily: 'Inter, MiSans, sans-serif',
    colorBgContainer: '#ffffff',
  },
  algorithm: theme.defaultAlgorithm,
}

// 深色模式 AntD 配置 (星际探索模式)
export const darkTheme: ThemeConfig = {
  token: {
    colorPrimary: COLOR_PRIMARY,
    colorBgBase: '#0F172A', // Bg-Deep
    colorBgContainer: '#1E293B', // Bg-Surface
    colorBorder: '#334155', // Slate-700
    borderRadius: 6,
    fontFamily: 'Inter, MiSans, sans-serif',
  },
  algorithm: theme.darkAlgorithm,
  components: {
    Card: {
      colorBgContainer: 'rgba(30, 41, 59, 0.6)', // 半透明玻璃态
      lineWidth: 0, // 移除默认边框，交由 CSS 处理发光
    },
    Layout: {
      colorBgHeader: '#1E293B',
      colorBgBody: '#0F172A',
      colorBgTrigger: '#1E293B',
    },
    Menu: {
      colorBgContainer: 'transparent',
      colorItemBg: 'transparent',
    },
  },
}
